package com.big.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (Content)实体类
 *
 * @author makejava
 * @since 2022-04-22 18:27:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_content")
public class Content implements Serializable {
    private static final long serialVersionUID = -53870229704650013L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    private String content;
    
    private String username;
    
    private String img;

    private Integer mid;

    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT) //创建时自动填充
    private Date ctime;

}

